<?php

namespace App\Models;

use Exception;
use Illuminate\Database\Eloquent\Factories\HasFactory;


/**
 * 数字资源类型模型
 * Class ArticleTypeModel
 * @package app\common\model
 */
class DigitalType extends BaseModel
{
    use HasFactory;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'change_time';

    protected $table = 'digital_type';


    /**
     * 获取数据资源类型id
     */
    public function getTypeList()
    {
        $res = $this->select('id', 'type_name')->where('is_del', 1)->get();
        return $res;
    }
}
